.chart_thumbnail {
  position: fixed;
  right: 40px;
  bottom: 25px;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 60px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 31px;
  box-shadow: 0 0 14px 0 rgba(0, 0, 0, .16);
  cursor: pointer;
  text-decoration: none;
  background-color: #07c160;
  z-index: 9999;
  overflow: hidden;
}

.msg_num {
  font-size: 18px;
  color: #FFF;
}

.msg_icon {
  width: 38px;
  margin-top: 10px;
}

.chart_body {
  position: fixed;
  right: 0px;
  bottom: 0;
  width: 550px;
  height: fit-content;
  background-color: #ffffff;
  font-size: 12px;
  margin: 0;
  padding: 0;
  border: 1px solid #c3c3c3;
  border-radius: 6px;
  overflow: hidden;
  z-index: 9999;

  .chart_header {
    height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #bf0b21;
    padding: 0 6px;

    .header_left {
      display: flex;
      justify-content: flex-start;
      align-items: center;

      img {
        width: 24px;
        height: 24px;
        margin-right: 6px;
        border-radius: 50%;
      }

      .header_title {
        font-size: 14px;
        color: #FFF;
        line-height: 36px;
        margin-top: 0;
      }
    }

    .header_right {
      .tool_body {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #fff;
        text-align: center;
        padding: 2px;
        cursor: pointer;
        overflow: hidden;

        >span {
          &:after {
            content: "";
            display: block;
            width: 90%;
            height: 3px;
            background: #bf0b21;
            margin-top: 50%;
            transform: translate(5%, -50%);
          }
        }
      }
    }
  }

  .chart_content {
    width: 100%;
    height: 385px;
    padding: 10px;
    overflow-y: auto;

    .chart_more {
      width: 100%;
      font-size: 14px;
      cursor: pointer;
      text-align: center;
      line-height: 30px;
    }

    .robot_msg,
    .user_msg {
      width: 100%;
      display: flex;
      margin-top: 18px;

      img {
        width: 24px;
        height: 24px;
      }

      .msg_content {
        max-width: 436px;
        margin-left: 10px;
        margin-right: 15px;
        background: #fff;
        border: 1px solid #d8d8d8;
        border-radius: 6px;
        padding: 8px 12px;
        word-break: break-all;
        word-wrap: break-word;

        .msg_time {
          font-size: 12px;
          line-height: 20px;
          margin-top: -2px;
        }
      }
    }

    .robot_msg {
      position: relative;
      justify-content: flex-start;

      .msg_content::before {
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        top: 9px;
        left: 25px;
        border-top: 5px solid transparent;
        border-left: 5px solid transparent;
        border-right: 5px solid #d8d8d8;
        border-bottom: 5px solid transparent;
      }
    }

    .user_msg {
      position: relative;
      justify-content: flex-end;

      .msg_content {
        color: #fff;
        margin-right: 10px;
        background: #bf0b21;

        &::after {
          content: " ";
          height: 0;
          width: 0;
          position: absolute;
          pointer-events: none;
          top: 9px;
          right: 31px;
          border-top: 5px solid transparent;
          border-left: 5px solid #bf0b21;
          border-right: 5px solid transparent;
          border-bottom: 5px solid transparent;
        }
      }

      img {
        width: 30px;
        height: 30px;
      }
    }
  }

  .chart_footer {
    :global(.ant-input) {
      resize: none !important;
      border: none;

      &:focus {
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0);
      }
    }

    .footer_title {
      height: 28px;
      background-color: #f1f1f1;
      border-bottom: 1px solid #e6e6e6;
      border-top: 1px solid #e6e6e6;
      width: 100%;
    }

    .send_body {
      text-align: right;
      margin: 6px;
    }
  }
}

.hide {
  display: none;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}